package com.neighbor.neighborhoodadmin.service.impl;

import com.neighbor.neighborhoodadmin.pojo.ItemOrders;
import com.neighbor.neighborhoodadmin.dao.IItemOrdersDao;
import com.neighbor.neighborhoodadmin.service.IItemOrdersService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;

/**
 * <p>
 * 物品交易订单表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:11:23
 */
@Service
public class ItemOrdersServiceImpl extends ServiceImpl<IItemOrdersDao, ItemOrders> implements IItemOrdersService {
    @Autowired
    IItemOrdersDao itemOrdersDao;

    @Override
    public Long getTodayOrders(LocalDate date) { //获取某天的订单数量
        return itemOrdersDao.getTodayOrders(date);
    }
}
